package com.ruoyi.passenger.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.passenger.mapper.TbPassengerRechargeFlowMapper;
import com.ruoyi.passenger.domain.TbPassengerRechargeFlow;
import com.ruoyi.passenger.service.ITbPassengerRechargeFlowService;

/**
 * 用户详情-充值记录-新增Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-18
 */
@Service
public class TbPassengerRechargeFlowServiceImpl implements ITbPassengerRechargeFlowService 
{
    @Autowired
    private TbPassengerRechargeFlowMapper tbPassengerRechargeFlowMapper;

    /**
     * 查询用户详情-充值记录-新增
     * 
     * @param rechargeId 用户详情-充值记录-新增主键
     * @return 用户详情-充值记录-新增
     */
    @Override
    public TbPassengerRechargeFlow selectTbPassengerRechargeFlowByRechargeId(Long rechargeId)
    {
        return tbPassengerRechargeFlowMapper.selectTbPassengerRechargeFlowByRechargeId(rechargeId);
    }

    /**
     * 查询用户详情-充值记录-新增列表
     * 
     * @param tbPassengerRechargeFlow 用户详情-充值记录-新增
     * @return 用户详情-充值记录-新增
     */
    @Override
    public List<TbPassengerRechargeFlow> selectTbPassengerRechargeFlowList(TbPassengerRechargeFlow tbPassengerRechargeFlow)
    {
        return tbPassengerRechargeFlowMapper.selectTbPassengerRechargeFlowList(tbPassengerRechargeFlow);
    }

    /**
     * 新增用户详情-充值记录-新增
     * 
     * @param tbPassengerRechargeFlow 用户详情-充值记录-新增
     * @return 结果
     */
    @Override
    public int insertTbPassengerRechargeFlow(TbPassengerRechargeFlow tbPassengerRechargeFlow)
    {
        return tbPassengerRechargeFlowMapper.insertTbPassengerRechargeFlow(tbPassengerRechargeFlow);
    }

    /**
     * 修改用户详情-充值记录-新增
     * 
     * @param tbPassengerRechargeFlow 用户详情-充值记录-新增
     * @return 结果
     */
    @Override
    public int updateTbPassengerRechargeFlow(TbPassengerRechargeFlow tbPassengerRechargeFlow)
    {
        return tbPassengerRechargeFlowMapper.updateTbPassengerRechargeFlow(tbPassengerRechargeFlow);
    }

    /**
     * 批量删除用户详情-充值记录-新增
     * 
     * @param rechargeIds 需要删除的用户详情-充值记录-新增主键
     * @return 结果
     */
    @Override
    public int deleteTbPassengerRechargeFlowByRechargeIds(Long[] rechargeIds)
    {
        return tbPassengerRechargeFlowMapper.deleteTbPassengerRechargeFlowByRechargeIds(rechargeIds);
    }

    /**
     * 删除用户详情-充值记录-新增信息
     * 
     * @param rechargeId 用户详情-充值记录-新增主键
     * @return 结果
     */
    @Override
    public int deleteTbPassengerRechargeFlowByRechargeId(Long rechargeId)
    {
        return tbPassengerRechargeFlowMapper.deleteTbPassengerRechargeFlowByRechargeId(rechargeId);
    }
}
